﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterBackEnd.Master" AutoEventWireup="true" CodeFile="ReportGeneral.aspx.cs" Inherits="Pages_Report_ReportGeneral" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="/Js/Pages/Report/rptGeneral.js" type="text/javascript"></script>
     <script type="text/javascript">
         $(function () {
             $("#txtFromDate").datepicker({
                 changeMonth: true,
                 changeYear: true
             });
             $("#txtToDate").datepicker({
                 changeMonth: true,
                 changeYear: true
             });

             var today = new Date();
             var m_day = today.getDate();
             var m_month = today.getMonth() + 1;
             var m_year = today.getFullYear();
             if (m_day < 10) m_day = '0' + m_day;
             if (m_month < 10) m_month = '0' + m_month;

             var m_fromDay = m_day;
             var m_fromMonth = m_month;
             var m_fromYear = m_year - 1;
             if (m_fromDay > 28) {
                 m_fromDay = 28;
             }

             var m_fromDate = m_fromDay + "/" + m_fromMonth + "/" + m_fromYear;
             var m_toDate = m_day + "/" + m_month + "/" + m_year;

             $("#txtFromDate").val(m_fromDate);
             $("#txtToDate").val(m_toDate);

             Pages_Report_ReportGeneral.documentReady();
         })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" Runat="Server">
      <div class="tabs_wrapper">
        <ul class="tabs">
            <li class="selected tab_link"><span class="tab_link">Thống kê tổng quát</span> </li>
        </ul>
    </div>
    <div class="container_data" id="divSearch">
        <div class="header_container">
            <span class="container_text">Tìm kiếm</span>
            <div class="clear">
            </div>
        </div>
        <div class="content padding0">
            <div class="form form_3cols">
                <div class="content_info">
                    <ul>
                        <li class="content_info_left">Từ ngày:</li>
                        <li class="content_info_right" style="width: 160px">
                            <input type="text" id="txtFromDate" class="input_text"/></li>
                         <li class="content_info_left">Đến ngày:</li>
                        <li class="content_info_right" style="width: 160px">
                            <input type="text" id="txtToDate" class="input_text"/></li>                      
                        <div style="clear: both">
                        </div>
                        </ul>
                    </div>                                    
                <div style="clear: both;">
                </div>
            </div>
            <div class="form_btn" align="left">
                <input id="btnSearch" class="button" value="Tìm kiếm" type="button" /></div>
        </div>
    </div>
    <div class="container_data">
        <div class="header_container">
            <span class="container_text">Thống kê tổng quát<span class="text_blue" style="font-size: 10px;
                padding-left: 3px; font-weight: normal" id="spTotalAdmin"></span></span>          
            <div class="clear">
            </div>
        </div>
        <div class="content padding0">
            <div class="detailprice " style="padding: 2px;">
               <table cellspacing="0" cellpadding="0" class="cssgrid" style="margin: 10px">
                    <tbody>
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng VNĐ đã nạp</span></td><td id="tdTotalVNDIn"></td>
                        </tr>
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng Vàng được mua</span></td><td id="tdTotalAuIn"></td>
                        </tr>
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng Bạc được mua</span></td><td id="tdTotalAgIn"></td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2"></td>
                        </tr>                        
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng Vàng đặt cược</span></td><td id="tdTotalAuPlay"></td>
                        </tr>
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng Bạc đặt cược</span></td><td id="tdTotalAgPlay"></td>
                        </tr>
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng Vàng trả thưởng</span></td><td id="tdTotalAuBonus"></td>
                        </tr>
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng Bạc trả thưởng</span></td><td id="tdTotalAgBonus"></td>
                        </tr>
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng Bạc đem đổi</span></td><td id="tdTotalAgToAu"></td>
                        </tr>
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng Vàng được đổi</span></td><td id="tdTotalAuFromAg"></td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2"></td>
                        </tr>
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng Vàng mua tiền</span></td><td id="tdTotalAuOut"></td>
                        </tr>
                        <tr class="category">
                            <td align="left"><span class="norB">Tổng VNĐ được mua</span></td><td id="tdTotalVNDOut"></td>
                        </tr>
                    </tbody>
                </table>                                
                <div style="clear: both;">
                </div>
            </div>
        </div>
    </div>
</asp:Content>

